//
//  RouteRequestResultModel.h
//  RouteSearcher
//
//  Created by wenqingzhou on 2/16/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RouteModel.h"
#import "Formatter.h"

@interface RouteRequestResultModel : NSObject <NSXMLParserDelegate>{
	NSString *searchTime;
	NSURL *url;
	NSMutableArray *arrayOfRoutes;
	NSInteger numberOfRoutes;
	NSString *start;
	NSString *dest;
	RouteModel *tmpRoute;
	NSInteger parserState;		// stateOfParser,range:1-2, 1:route,2:path
}
+(RouteRequestResultModel *)initWithRequest:(NSURL *)myUrl andStart:(NSString *)startStr andDest:(NSString *)destStr andSearchTime:(NSString *)time;
-(BOOL)getResultOfRequest;
- (NSString *)getTitleOfRoute;
@property (assign) NSMutableArray *arrayOfRoutes;
@property (retain) NSString *start,*dest,*searchTime;
@property (retain) NSURL *url;
@property NSInteger numberOfRoutes,parserState;
@property (retain) RouteModel *tmpRoute;
@end
